package com.itcast.demo.direct;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;

/**
 * @author sunliang
 * @version 1.0
 * @date 2021/4/25 15:07
 */
public class MessageConsumer implements MessageListener
{
    @Override
    public void onMessage(Message message)
    {
        System.out.println(new String(message.getBody()));
    }
}
